package base;

public class demo01 {
    public static void main(String[] args) {
        //八大数据基本类型

        //1.整数
        int num1 =10;      //最常用
        byte num2 = 20;
        short num3 = 30;
        long num4 = 30L;   //Long类型再数字后加个L
        System.out.println();
        //2.小数：浮点数
        float num5 = 69.9F; //Float类型要在数字后价格F
        double num6 = 3.1415926;
        //3.字符
        char name = '羊';
        //字符串，String不是关键字，类
        //String name1 = "懒羊羊";

        //4.布尔值:是非
        boolean flag = true;
        //boolean flag1 = false;
    }
}
